from django.contrib import admin

from assets.models import PreCacheRule, PreCacheRule_Argument

class PreCacheRule_ArgumentInline(admin.TabularInline):
    model = PreCacheRule_Argument
    extra = 1

class PreCacheRuleAdmin(admin.ModelAdmin):
    inlines = [
        PreCacheRule_ArgumentInline,
    ]
admin.site.register(PreCacheRule, PreCacheRuleAdmin)
